package net.carefx.empi.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.carefx.empi.dao.PersonDao;
import net.carefx.empi.dao.UserDao;
import net.carefx.empi.model.Person;
import net.carefx.empi.service.PersonManager;

@Service("personManager")
public class PersonManagerImpl  extends GenericManagerImpl<Person, Long> implements PersonManager {
    PersonDao personDao;

    @Autowired
    public void setPersonDao(PersonDao personDao) {
        this.dao = personDao;
        this.personDao = personDao;
    }

    public List<Person> findByLastName(String lastName) {
        return personDao.findByLastName(lastName);
    }


}
